/*
 * File Name:               XServerTimer.cs
 *
 * Description:             服务器对时工具
 * Author:                  lisiyu
 * Create Date:             2016/09/23
 */

using UnityEngine;

public class XServerTimer
{
    private long mOffsetTime;

    public void setServerTime(long value)
    {
        mOffsetTime = value - (long)(Time.realtimeSinceStartup * 1000);
    }

    public long getServerTime()
    {
        return mOffsetTime + (long)(Time.realtimeSinceStartup * 1000);
    }
}